var rule = {
    title: '麻花影视',
    host: 'https://www.mahuage1.com',
    // homeUrl:'/',
    url: '/a/fyclass-fypage.html',
    searchUrl: '/so/**----------fypage---.html',
    searchable: 2, 
    quickSearch: 0, 
    filterable: 0, 
    headers: { 
        'User-Agent': 'MOBILE_UA',
        // "Cookie": "searchneed=ok"
    },
    class_name: '电影&连续剧&综艺&动漫&动作片&喜剧片&爱情片&科幻片&恐怖片&剧情片&科幻片&战争片&国产剧&港台剧&日韩剧&欧美剧&纪录片&动画片&海外剧',
    class_url: '1&2&3&4&6&7&8&9&10&11&12&13&14&15&16&20&21&22',
    play_parse: true,
   lazy: `js:
            if(/\\.(m3u8|mp4)/.test(input)){
                input = {parse:0,url:input}
            }else{
                if(rule.parse_url.startsWith('json:')){
                    let purl = rule.parse_url.replace('json:','')+input;
                    let html = request(purl);
                    input = {parse:0,url:JSON.parse(html).url}
                }else{
                    input= rule.parse_url+input; 
                }`,
    limit: 6,
    推荐: '*',
    double: true, // 推荐内容是否双层定位
    一级: '.hl-list-item.hl-col-xs-4.hl-col-sm-3;a&&title;a&&data-original;.hl-pic-text&&Text;a&&href',
    二级: $js.toString(() => {
        VOD = {};
        let html = request(input);
        VOD.vod_name = pdfh(html, "h2&&Text");
        VOD.vod_pic = pd(html, "a&&data-original");
        VOD.vod_year = pdfh(html, ".hl-col-xs-12:eq(4)&&Text");
        VOD.vod_area = pdfh(html, ".hl-col-xs-12:eq(5)&&Text");
        VOD.type_name = pdfh(html, ".hl-col-xs-12:eq(6)&&Text");
        VOD.vod_actor = pdfh(html, ".hl-col-xs-12:eq(2)&&Text");
        VOD.vod_director = pdfh(html, ".hl-col-xs-12:eq(3)&&Text");
        VOD.vod_remarks = "";
        VOD.vod_content = pdfh(html, ".vod-content&&Text");
        let playFrom = [];
        let playUrl = [];
        let tabs = pdfa(html, ".hl-plays-from.hl-tabs.swiper-wrapper&&a");
        tabs.forEach((it, index) => {
            playFrom.push(pdfh(it, 'a&&Text'));
            let playTag = "#hl-plays-list:eq(" + index + ") li";
            let tags = pdfa(html, playTag);
            let mapUrl = tags.map((tag) => {
                let title = pdfh(tag, "a&&Text").trim();
                let purl = pdfh(tag, "a&&href");
                return title + "$" + rule.host + urlencode(purl);
            });
            playUrl.push(mapUrl.join("#"))
        });
        VOD.vod_play_from = playFrom.join("$$$");
        VOD.vod_play_url = playUrl.join("$$$");
    }),
    搜索: '.hl-list-item.hl-col-xs-12;a&&title;a&&data-original;.hl-item-sub.hl-lc-1&&Text;a&&href',
}
 